package labelsystem.Service;

import labelsystem.Pojo.Order;
import labelsystem.Pojo.Text;
import labelsystem.Pojo.Video;
import labelsystem.Pojo.Volunteer;

import java.util.List;

/**
 * @author MCG
 * @projectName careOlder
 * @Description TODO
 * @time 2023/3/19 19:36
 */
public interface volunteerService {

    /*
     * @description:登陆
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/26 20:43
     */
    public boolean loginInByPassword(String telephone,String password);
    public boolean loginInByCode(String input,String code);
    /*
     * @description:  注册
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/26 20:46
     */
    public Volunteer register(String name,Long phone,int age,String gender,String password,Float price,Float rating,int experience,String crl);
    /*
     * @description:查询个人信息
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/26 20:47
     */
    public Volunteer queryInfo(Long vid);
    public Volunteer queryInfoByTel(Long phone);

    /*
     * @description:保存文章和视频
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/28 14:00
     */

    public boolean saveText(Long vId,String url);

    public boolean saveVideo(Long vId,String url);
    /*
     * @description:查看订单
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/26 20:48
     */
    public List<Order> selectListById(Long vid);

    public List<Text> selectTextById(Long vid);

    public List<Video> selectVideoById(Long vid);

    /*
     * @description:跟新信息
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/28 15:12
     */
    public boolean updateVolunteer(Volunteer volunteer);

}
